<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3-11 vm.$slots</title>
</head>
<body>
<div id="app">
    <test-component>hello
        <template v-slot:second>
            <div>inner construct</div>
        </template>
    </test-component>
</div>
<template id="first">
    <div>
        <slot name="second"></slot>
        <slot></slot>

    </div>
</template>
</body>
<script src="./js/vue.js"></script>
<script>
    Vue.component('test-component',{template:"#first"})
   var vm=new Vue({
        el:"#app"
    })
    console.log(vm.$children[0].$slots.second[0].children[0].text)
</script>
</html>